package com.xyzh.stj.web.service.impl;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.xyzh.stj.web.entity.SysLogEntity;
import com.xyzh.stj.web.dao.SysLogMapper;
import com.xyzh.stj.web.service.SysLogService;
import com.xyzh.application.base.service.BasicServiceImpl;
import com.xyzh.application.common.constants.ReqPage;
import com.xyzh.application.common.util.ResultHelper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author @JZB
 * @since 2023-10-31
 */
@Service
public class SysLogServiceImpl extends BasicServiceImpl<SysLogMapper, SysLogEntity> implements SysLogService {

    @Override
    public List<SysLogEntity> list(SysLogEntity sysLogEntity) {
        return super.list(sysLogEntity,false,"createtime");
    }

    @Override
    public ResultHelper queryByPage(ReqPage<SysLogEntity> reqPage) {
        return super.queryByPage(reqPage, OrderItem.desc("createtime"));
    }

    @Override
    public ResultHelper queryLikeByPage(ReqPage<SysLogEntity> reqPage) {
        return super.queryLikeByPage(reqPage, OrderItem.desc("createtime"));
    }
}
